import useFetchYr from "@/views/lotStats/wrapper/components/All/useFetchYr";
import useAppTabs from "@/views/lotStats/wrapper/hooks/useAppTabs";
const useChkNum = defineStore("chkNum", () => {
  const router = useRouter();
  const { setCurAppCpt } = useAppTabs();
  function handleTabClick(type: string) {
    setCurAppCpt(type);
    router.push("/lotStats").then(() => {
      const { fetchDrawYr } = useFetchYr();
      fetchDrawYr();
    });
  }
  function handleDrawVidClick() {
    router.push("/drawVid");
  }
  return {
    handleTabClick,
    handleDrawVidClick
  };
});
export default useChkNum;
